home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World 2006 February
/
PCWorld_2006-02_cd.bin
/
software
/
vyzkuste
/
tnt
/
tnt.exe
/
{app}
/
plugins
/
NTP Option 1.ttp
< prev
next >
Wrap
INI File
|
2005-03-15
|
1KB
|
56 lines
[SETTINGS]
category=Windows Tweaks::Network::Internet Time Synchronization Interval
Caption=Modify Internet Time Synchronization Interval
version=1.0
OSVERSION=XP,2003
#=This tweak is used to modify the interval between attempts to synchronize the system clock to an accurate time source on the Internet.
#=\n\nThe default interval is 10080 minutes (7 days). To reset to the default, clear the text box.
Author=
[INTERFACE]
TYPE=multi
type0=spin
Text0=Interval (minutes)
style0=1,65000
[SCRIPT]
Dim sPath
sPath="HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\W32Time\TimeProviders\NtpClient\SpecialPollInterval"
Sub OnInit()
Dim s,t
if regkeyexists("HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\W32Time\TimeProviders\NtpClient")=false then
DisableWindow
exit sub
end if
s=RegReadValue(sPath)
if IsEmpty(s) then
SetItemText 0,""
else
If IsNumeric(s)=true then
t=CLng(s)
t=t/60 '=minutes
SetItemText 0,t
end if
end if
End Sub
Sub OnApply(x,y)
Dim s,t
s=GetItemText(0)
if len(s) = 0 then s = "10080"
'if RegValueExists(sPath) then s="10080"
t=Clng(s)
if t = 0 then t = 10080
t=t*60 'seconds
RegWriteValue sPath,t,2
Call Restart()
'end if
'end if
End Sub